package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 代码表管理对象 sys_code_parent
 * 
 * @author ruoyi
 * @date 2025-07-02
 */
public class SysCodeParent extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Integer id;

    /** 代码 */
    @Excel(name = "代码")
    private String codep;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 根据这个字段排序 */
    @Excel(name = "根据这个字段排序")
    private Integer sort;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setCodep(String codep) 
    {
        this.codep = codep;
    }

    public String getCodep() 
    {
        return codep;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("codep", getCodep())
            .append("name", getName())
            .append("sort", getSort())
            .append("parentId", getParentId())
            .toString();
    }
}
